-- GENERATED SPELL FOR [Mug'thol] --


function spell0_2257(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_2257', 30321, 1)
end

function spell1_2257(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2257', 617, 1)
end

function Sorts_2257(pUnit, Event)
local choix_sorts_2257 = math.random(0, 1)
if choix_sorts_2257 == 0 then
pUnit:RegisterEvent('spell0_2257', 1, 1)
end
if choix_sorts_2257 == 1 then
pUnit:RegisterEvent('spell1_2257', 1, 1)
end
end

function mob2257_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2257', math.random(1500, 3000), 1)
end

function mob2257_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2257_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2257_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2257, 1, 'mob2257_Action')
RegisterUnitEvent(2257, 2, 'mob2257_Leave')
RegisterUnitEvent(2257, 3, 'mob2257_Kill')
RegisterUnitEvent(2257, 4, 'mob2257_Die')
